package com.lyf.dao;

import org.springframework.stereotype.Repository;

import com.lyf.dao.base.BaseDao;
import com.lyf.pojo.Tasktype;

@Repository
public class TasktypeDao extends BaseDao<Tasktype,String>{

	public void updateColor(String color,String id) {
		String hql = "update Tasktype set color = ? where id = ?";
		updateByHql(hql, color,id);
	}

	public void updateType(String type, String typeid) {
		String hql = "update Tasktype set type = ? where id = ?";
		updateByHql(hql, type,typeid);
	}
	
}
